package imu.ming.spring.service.impl;

import imu.ming.spring.LogEntity;



import imu.ming.spring.dao.UserDao.SystemLogDao;
import imu.ming.spring.service.SystemLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 日志服务层 实现类
 * @Author Zhangxiliang
 * @Date 2022/5/30
 **/
@Service
public class SystemLogServiceImpl implements SystemLogService {

    @Autowired
    private SystemLogDao systemLogDao;

    @Override
    public int insertLog(LogEntity logEntity) {
        return systemLogDao.insertLog(logEntity);
    }

    @Override
    public List<LogEntity> selectLogByUserName(String userName) {
        return systemLogDao.selectLogByUserName(userName);
    }

    @Override
    public int deleteLog(Integer logId) {
        return systemLogDao.deleteLog(logId);
    }
}
